Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports System.Runtime.Serialization

Namespace C4F.DevKit.Speech

	''' <summary>
	''' The exception that is thrown when an error occures while doing operations related to SAPI.
	''' </summary>
	<Serializable> _
	Public Class SapiManagerException
		Inherits Exception

		''' <summary>
		''' Initializes a new instance of the SapiManagerException class.
		''' </summary>
		Public Sub New()
			MyBase.New()
		End Sub

		''' <summary>
		''' Initializes a new instance of the SapiManagerException class with a 
		''' specified error message.
		''' </summary>
		''' <param name="message">The message that describes the error.</param>
		Public Sub New(ByVal message As String)
			MyBase.New(message)
		End Sub

		''' <summary>
		''' Initializes a new instance of the SapiManagerException class with a 
		''' specified error message and Inner Exception.
		''' </summary>
		''' <param name="message">
		''' The message that describes the error.
		''' </param>
		''' <param name="innerException">
		''' The message that describes the innerException.
		''' </param>
		Public Sub New(ByVal message As String, ByVal innerException As Exception)
			MyBase.New(message, innerException)
		End Sub

		''' <summary>
		''' Initializes a new instance of the SapiManagerException class with a 
		''' specified SerializationInfo and context.
		''' </summary>
		''' <param name="info">
		''' Specifies the serialization information.
		''' </param>
		''' <param name="context">
		''' The message that describes the context of the exception.
		''' </param>
		Protected Sub New(ByVal info As SerializationInfo, ByVal context As StreamingContext)
			MyBase.New(info, context)
		End Sub

	End Class
End Namespace




